import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/stock_out_child_entity.dart';

StockOutChildEntity $StockOutChildEntityFromJson(Map<String, dynamic> json) {
  final StockOutChildEntity loginBeanEntity = StockOutChildEntity();

  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    loginBeanEntity.id = id;
  }
  final String? orderNumber = jsonConvert.convert<String>(json['orderNumber']);
  if (orderNumber != null) {
    loginBeanEntity.orderNumber = orderNumber;
  }

  final String? address = jsonConvert.convert<String>(json['address']);
  if (address != null) {
    loginBeanEntity.address = address;
  }
  final String? status = jsonConvert.convert<String>(json['status']);
  if (status != null) {
    loginBeanEntity.status = status;
  }

  final String? orderCount = jsonConvert.convert<String>(json['orderCount']);
  if (orderCount != null) {
    loginBeanEntity.orderCount = orderCount;
  }

  final String? consignee = jsonConvert.convert<String>(json['consignee']);
  if (consignee != null) {
    loginBeanEntity.consignee = consignee;
  }

  final String? warehouseName = jsonConvert.convert<String>(json['warehouseName']);
  if (warehouseName != null) {
    loginBeanEntity.warehouseName = warehouseName;
  }

  final String? stationTime = jsonConvert.convert<String>(json['stationTime']);
  if (stationTime != null) {
    loginBeanEntity.stationTime = stationTime;
  }

  return loginBeanEntity;
}

Map<String, dynamic> $StockOutChildEntityToJson(StockOutChildEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['orderNumber'] = entity.orderNumber;
  data['address'] = entity.address;
  data['status'] = entity.status;
  data['orderCount'] = entity.orderCount;
  data['warehouseName'] = entity.warehouseName;
  data['stationTime'] = entity.stationTime;
  data['consignee'] = entity.consignee;

  return data;
}
